package com.yue.exception.exception;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2016/11/28<br/>
 *
 * @author QiuYang
 */
public class CommonRuntimeException extends RuntimeException {
    private Object extra;

    public CommonRuntimeException() {
        super();
    }

    public CommonRuntimeException(String message) {
        super(message);
    }

    public CommonRuntimeException(Throwable cause) {
        super(cause);
    }

    public CommonRuntimeException(String message, Throwable cause) {
        super(message, cause);
    }

    public CommonRuntimeException(String message, Object extra){
        super(message);
        this.extra = extra;
    }

    public CommonRuntimeException(String message, Object extra, Throwable cause){
        super(message, cause);
        this.extra = extra;
    }

    public int getStatusCode(){
        return 400;
    }

    public String display(){
        return "";
    }

    public Object extra(){
        return extra;
    }
}
